from flask import session
#导入扩张模块
import info1.models
from flask_script import Manager
#导入数据库迁移模块
from flask_migrate import Migrate,MigrateCommand
#导入crete_app函数
from info1 import create_app,db
app = create_app(config_name='development')
#实例化启动对象
manage = Manager(app)
#使用迁移框架
Migrate(app,db)
#添加迁移命令
manage.add_command('db',MigrateCommand)


if __name__ == '__main__':
    # app.run()

    manage.run()